<?php include 'header.php' ?>
    <div id="dialog" title="Xác nhận">
        <p> Bạn chắc chắn muốn xóa?</p>
        <button onclick="deleteCategory();">Có</button>
        <button onclick="closeDialog()">Không</button>
    </div>

        <article>
            <div class="clear"/>

            <section class="list-content">
                <header>
                    <h1>Bảng danh mục</h1>
                </header>
                <div id="category_form">
                    <p id="message"></p>

                    <form action="">
                        <div>
                            <input type="hidden" id="id_cat">
                            <label for="cat_name">Tên danh mục: </label>
                            <input type="text" id="cat_name" name="cat_name" maxlength="100"
                                   placeholder="tên danh mục" required="true" autofocus="true">
                        </div>
                <div class="clear"/>
                <div>
                    <br>
                    <input type="submit" value="Lưu lại" onclick="createNewCategory();return false;" style="width: 100px">

                </div>
                </form>
                    <br>
                <div class="clear"/>
                </div>
            </section>

            <section class="list-content">
                <div id="category_list">
                </div>
                <div class="clear"/>
            </section>

            <div class="clear"/>
        </article>

<?php include 'footer.php' ?>